package com.wpx.log.core.handler;

import java.lang.reflect.Field;
import java.util.Date;

import org.aspectj.lang.ProceedingJoinPoint;

import com.wpx.log.core.LogContext;
import com.wpx.log.core.LogRequestContext;

public class OpCreateTimeLogHandler implements ILogHandler {

	@Override
	public Object handler(LogContext logContext, LogRequestContext logRequestContext, Field logField) {
		if(logField.getType() == Date.class) {
			return new Date(logRequestContext.getStatrtTime());
		}
		return logRequestContext.getStatrtTime();
	}

}
